#ifndef BITMAP_H_
#define BITMAP_H_

/*
Copyright (C) 2011 Salil Bhagurkar

This file is part of illusion

illusion is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

illusion is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License
along with illusion.  If not, see <http://www.gnu.org/licenses/>.
*/

int get_bit(void *bitmap, unsigned long nr);
void set_bit(void *bitmap, unsigned long nr);
void clear_bit(void *bitmap, unsigned long nr);
int find_set_bit(void *bitmap, unsigned long nr, unsigned long *location);
int find_clear_bit(void *bitmap, unsigned long nr, unsigned long *location);
unsigned long count_set_bit(void *bitmap, unsigned long nr);
unsigned long count_clear_bit(void *bitmap, unsigned long nr);


#endif /* BITMAP_H_ */
